<script>
var w = new Worker('work.js');
</script>
